home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-23 | 1.5 KB | 69 lines | [TEXT/CWIE] |
- //
- // LEGAL NOTICE
- // ============
- //
- // You may incorporate this sample code into your applications
- // without restriction. This sample code has been provided "AS
- // IS" and the responsibility for its operation is 100% yours.
- // You are not permitted to redistribute the source as "Apple
- // sample code" after having made changes. If you're going to
- // re-distribute the source, we require that you make it clear
- // in the source that the code was descended from Apple sample
- // code, but that you've made changes.
- //
-
- #pragma once
-
- #ifndef __DRAG__
- # include <Drag.h>
- #endif
-
- enum
- {
- _DragDispatch = 0xABED
- };
-
- enum
- {
- gestaltDragMgrHasImageSupport = 3
- };
-
- enum
- {
- unsupportedForPlatformErr = -1858, // call is for PowerPC only
- noSuitableDisplaysErr = -1859, // no displays support translucency
- badImageRgnErr = -1860, // bad translucent image region
- badImageErr = -1861 // bad translucent image PixMap
- };
-
- typedef unsigned long DragImageFlags;
-
- enum
- {
- dragStandardImage = 0x00000000,
- dragDarkImage = 0x00000001,
- dragDarkerImage = 0x00000002,
- dragOpaqueImage = 0x00000003,
- dragRegionAndImage = 0x00000010
- };
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- pascal OSErr SetDragImage ( DragReference theDragRef,
- PixMapHandle imagePixMap,
- RgnHandle imageRgn,
- Point imageOffsetPt,
- DragImageFlags theImageFlags )
-
- TWOWORDINLINE (0x7027, 0xABED);
-
- pascal OSErr GetDragHiliteColor (WindowPtr window, RGBColor *color)
-
- TWOWORDINLINE (0x7026, 0xABED);
-
- #ifdef __cplusplus
- }
- #endif
-